home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FLI106C.ZIP;1 / DLGELEM.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-12  |  1.1 KB  |  57 lines

  1. //
  2. // The Fusion Library Interface for DOS
  3. // Version 1.06c
  4. // Copyright (C) 1990, 1991, 1992
  5. // Software Dimensions
  6. //
  7. // DialogClass
  8. //
  9.  
  10. #include "fli.h"
  11.  
  12. #ifdef __BCPLUSPLUS__
  13. #pragma hdrstop
  14. #if defined(__SMALL__) || defined(__TINY__) || defined(__MEDIUM__)
  15. #pragma option -Od
  16. #endif
  17. #endif
  18.  
  19. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  20. //
  21. // Element()
  22. //
  23. // Add an element to the linked list
  24. //
  25. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  26.  
  27. void DialogClass::Element(DialogElement *Element)
  28. {
  29.   if (!Current)
  30.   {
  31.     First=Last=Current=Element;
  32.     Element->Blaze=&Blaze;
  33.   }
  34.   else
  35.   {
  36.     Element->Blaze=&Blaze;
  37.     Current->Next=Element;
  38.     DialogElement *Save=Current;
  39.     Last=Current=Element;
  40.     Current->Last=Save;
  41.   }
  42. }
  43.  
  44. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  45. //
  46. // Available()
  47. //
  48. // Attach and available integer to an element
  49. //
  50. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  51.  
  52. void DialogClass::Available(int &Avail)
  53. {
  54.   Current->Avail=&Avail;
  55. }
  56.  
  57.